.container {
    width: 400px;
    height: 400px;
    margin: 80px auto 0;
    border: 1px solid #222;
    border-radius: 50%;
    position: relative;
    -webkit-animation: zd 10s linear infinite;
    -moz-animation: zd 10s linear infinite;
    -ms-animation: zd 10s linear infinite;
    -o-animation: zd 10s liner infinite;
    animation: zd 10s linear infinite;
}
.sun {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: red;
    
    position: absolute;
    top: 100px;
    left: 100px;
}
.content {
    width: 100px;
    height: 100px;
    border: 1px solid red;
    border-radius: 50%;
    
    position: absolute;
    top: 150px;
    left: -50px;
    
    -webkit-animation: zd 8s linear infinite;
    -moz-animation: zd 8s linear infinite;
    -ms-animation: zd 8s linear infinite;
    -o-animation: zd 8s linear infinite;
    animation: zd 8s linear infinite;
}
.earth {
    width: 50px;
    height: 50px;
    background-color: aqua;
    border-radius: 50%;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.moon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: chocolate;

    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%,-50%);
}
@keyframes zd {
    from {-webkit-transform: rotate(0);
        -moz-transform: rotate(0);
        -ms-transform: rotate(0);
        -o-transform: rotate(0);
        transform: rotate(0);
    }
    to {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}